
#include "graphics/pixelbuffer.h"

namespace dw
{
	namespace graphics
	{

		IPixelBuffer::IPixelBuffer(const PixelFormat& pixelFormat, const uint32 width,  const Usage& usage) :
			IBuffer(usage),
			_pixelFormat(pixelFormat),
			_width(width),
			_height(1),
			_depth(1)
		{
		}

		IPixelBuffer::IPixelBuffer(const PixelFormat& pixelFormat, const uint32 width, const uint32 height, const Usage& usage) :
			IBuffer(usage),
			_pixelFormat(pixelFormat),
			_width(width),
			_height(height),
			_depth(1)
		{
		}

		IPixelBuffer::IPixelBuffer(const PixelFormat& pixelFormat, const uint32 width, const uint32 height, const uint32 depth, const Usage& usage) :
			IBuffer(usage),
			_pixelFormat(pixelFormat),
			_width(width),
			_height(height),
			_depth(depth)
		{
		}

	} // namespace graphics
} // namespace dw